﻿
using B.S.DataBase.MyProject.ErrorCode;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace B.S.DataBase.MyWrite.API.Appicant.Command.MenuCommand
{
    /// <summary>
    /// 添加菜单命令
    /// </summary>
    public class AddMenuCommand:IRequest<APIResult<string>>
    {
        /// <summary>
        /// 菜单id
        /// </summary>
        public int? MenuId { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName { get; set; }
        /// <summary>
        /// 点击菜单跳转地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 父级id   顶级菜单是0
        /// </summary>
        public int ParentId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 删除标识 false 未删  true 已删
        /// </summary>
        public bool? IsDeleted { get; set; } = false;   
        /// <summary>
        /// 排序字段 编号
        /// </summary>
        public int? OrderNum { get; set; }
    }
}
